Smush\Core\Modules\Bulk\Background_Bulk_Smush A

Total Complexity 57
Dependencies 8
Dependents 1
Total lines 326
Lines of code 219
Logical lines of code 115
Comment lines 37
Methods 28
Properties 3

Methods 28

Method Rating Maintainability Complexity Lines of code
cancel_programmatically()
A
58 10 13
bulk_smush_start()
S
52 4 26
bulk_smush_get_global_stats()
S
54 3 23
loopback_supported()
S
63 4 10
prepare_smush_tasks()
S
61 3 13
__construct()
S
56 2 18
is_background_enabled()
S
71 3 6
localize_background_stats()
S
64 3 9
prepare_background_tasks()
S
59 1 16
check_ajax_referrer()
S
70 2 6
get_mail_recipient()
S
74 2 4
can_use_background()
S
78 2 3
should_use_background()
S
77 2 4
get_in_process_notice()
S
74 2 5
bulk_smush_cancel()
S
75 1 5
get_failed_items()
S
81 1 3
is_completed()
S
81 1 3
register_ajax_handler()
S
79 1 3
get_email_disabled_notice()
S
69 1 7
get_email_enabled_notice()
S
75 1 4
is_in_processing()
S
81 1 3
prepare_resmush_tasks()
S
65 1 10
is_background_supported()
S
81 1 3
bulk_smush_get_status()
S
67 1 9
is_mysql_requirement_met()
S
78 1 3
get_required_mysql_version()
S
81 1 3
get_actual_mysql_version()
S
76 1 4
get_total_items()
S
81 1 3